package com.lambo.maven.core.utils.superHttp;

/**
 * SHttpException
 */
public class SHttpException extends RuntimeException {

    private boolean custom;

    public SHttpException(String message, Throwable cause) {
        this.custom = false;
    }

    public SHttpException(String message) {
        this.custom = false;
    }

    /**
     * 是否可解析异常
     * @return
     */
    public boolean isCustom() {
        return custom;
    }

    public void setCustom(boolean custom) {
        this.custom = custom;
    }

    public static SHttpException errCustom(String message) {
        SHttpException e = new SHttpException(message);
        e.setCustom(true);
        return e;
    }
    
}